package com.agritech.chain;

import lombok.Data;

/**
 * 安全事件类
 */
@Data
public class SafetyEvent {
    public enum EventType {
        OBSTACLE_DETECTED,
        MACHINE_FAILURE,
        BOUNDARY_VIOLATION,
        WEATHER_ALERT
    }

    private EventType type;
    private String description;
    private int severity; // 1-5，5最严重
    private String machineId;
}